import "../../common/polyfill";
import render from "./render";
import bindEvent from "./event";
import {checkOptions} from "../../common/utils";

const regMobile = (opts = {}) => {
    if (!checkOptions(opts)) {
        return;
    }
    const defaultOpts = {
        mobilePlaceHolder: "请填写您的手机号"
    };
    const options = Object.assign(defaultOpts, opts);
    //console.log(options);
    render(options);
    bindEvent(options);
};
export { regMobile }

